package Class.Homemade.demo0527.demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-05-27
 * Time: 21:44
 */
public abstract class Animal {
    public String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    //我的需求是一个不需要实现具体行为的方法：抽象方法 它必须放在抽象类中：
    public abstract void eat();
}
